package com.xxx.video.channel.adapters;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.cardview.widget.CardView;

import com.xxx.video.R;
import com.xxx.video.channel.config.ChannelFragmentItemClickType;
import com.xxx.video.commen.adapters.BaseRecycleViewAdapter;
import com.xxx.video.commen.adapters.BaseViewHolder;

import butterknife.BindView;
import butterknife.OnClick;

public class HistoryChannelListAdapter extends BaseRecycleViewAdapter<Object, HistoryChannelListAdapter.MyHolder> {

    public HistoryChannelListAdapter(@NonNull Context context) {
        super(context);
    }

    @Override
    public MyHolder onCreateDefaultViewHolder(View view, int viewType) {
        return new MyHolder(view);
    }

    @Override
    public int getItemLayout(int viewType) {
        return R.layout.item_history_channel_list;
    }

    @Override
    public int getItemCount() {
        return 10;
    }


    class MyHolder extends BaseViewHolder {

        @BindView(R.id.iv_item_history_channel_list_bg)
        ImageView ivItemHistoryChannelListBg;
        @BindView(R.id.iv_item_history_channel_list_cover)
        ImageView ivItemHistoryChannelListCover;
        @BindView(R.id.tv_item_history_channel_list_name)
        TextView tvItemHistoryChannelListName;
        @BindView(R.id.tv_item_history_channel_list_desc)
        TextView tvItemHistoryChannelListDesc;

        public MyHolder(View itemView) {
            super(itemView);
        }

        @Override
        public void setData2View(int position) {

        }
    }
}
